<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	AreaMapForm form = (AreaMapForm)request.getAttribute("command");
	UserInfo user = (UserInfo)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
%>

<div>
	<form id="AreaMapAddForm" target="_coreIframe" method="post" action="<%=request.getContextPath()%>/area/doAddMap" enctype="multipart/form-data">
		<div class="breadcrumb">
			<div class="bcIcon"></div>
			<ul class="bcNav">
				<li>新增围栏地图</li>
			</ul>
		</div>
		<table class="formTable">
			<input type="hidden" name="province" value="">
			<input type="hidden" name="city" value="">
			<input type="hidden" name="enteruser" value="<%=user.getUsername()%>">
			<tr>
				<td class="tdTitle">围栏名称：</td>
				<td>
					<input  class="inputText xs" type="text"  value="" name="areaname" AUTOCOMPLETE="off">
					<span class="errorTipWrap" id="errorTip_areaname"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">站点ID：</td>
				<td>
					<input class="inputText xs" type="text"  value="" name="siteid" readonly="readonly">
					<span class="errorTipWrap" id="errorTip_siteid"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">备注：</td>
				<td>
					<textarea class="textArea"  name="remark"></textarea>
				</td>
			</tr>

			<tr>
				<td class="tdTitle"></td>
				<td>
					<div>
						<input class="input-btn-microsoft" type="submit" value="提交">
						<a class="a-btn-microsoft" href="javascript:XF.Area.listAllAreaMap()">取消</a>
					</div>
				</td>
			</tr>	
		</table>
	</form>
	<iframe id="_coreIframe" name="_coreIframe" style="display: none;"></iframe>
</div>
<script type="text/javascript">
	$(document).ready(XF.Area.bigAutocomp(""))
</script>



